package com.ruoyi.property.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 费用折扣对象 pro_fee_discount_config
 * 
 * @author sux
 * @date 2021-08-24
 */
public class FeeDiscountConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 费用折扣ID */
    private Long feeDiscountId;

    /** 费用项名称 */
    @Excel(name = "费用项名称")
    private String expenseItemName;

    /** 折扣名称 */
    @Excel(name = "折扣名称")
    private String discountName;

    /** 折扣规则 */
    @Excel(name = "折扣规则")
    private String discountRuler;

    /** 折扣类型（0违约 1优惠） */
    @Excel(name = "折扣类型", readConverterExp = "0=违约,1=优惠")
    private String discountType;

    /** 缴费起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "缴费起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 缴费终止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "缴费终止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 折扣终止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "折扣终止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date discountEndTime;

    public void setFeeDiscountId(Long feeDiscountId) 
    {
        this.feeDiscountId = feeDiscountId;
    }

    public Long getFeeDiscountId() 
    {
        return feeDiscountId;
    }
    public void setExpenseItemName(String expenseItemName) 
    {
        this.expenseItemName = expenseItemName;
    }

    public String getExpenseItemName() 
    {
        return expenseItemName;
    }
    public void setDiscountName(String discountName) 
    {
        this.discountName = discountName;
    }

    public String getDiscountName() 
    {
        return discountName;
    }
    public void setDiscountRuler(String discountRuler) 
    {
        this.discountRuler = discountRuler;
    }

    public String getDiscountRuler() 
    {
        return discountRuler;
    }
    public void setDiscountType(String discountType) 
    {
        this.discountType = discountType;
    }

    public String getDiscountType() 
    {
        return discountType;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDiscountEndTime(Date discountEndTime) 
    {
        this.discountEndTime = discountEndTime;
    }

    public Date getDiscountEndTime() 
    {
        return discountEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("feeDiscountId", getFeeDiscountId())
            .append("expenseItemName", getExpenseItemName())
            .append("discountName", getDiscountName())
            .append("discountRuler", getDiscountRuler())
            .append("discountType", getDiscountType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("discountEndTime", getDiscountEndTime())
            .toString();
    }
}
